package com.eve.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.eve.service.HelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 老大哥在看着你
 *
 * @author Rain
 * @date 2019-11-12 13:32
 */
@RestController
public class HelloController {

    @Reference(version = "1.0.0",group = "helloService2",interfaceClass = HelloService.class)
    private HelloService helloService;

    @GetMapping("/hello")
    public String sayHello(String name) {
        return helloService.sayHello(name);
    }
}
